import request from "../utils/request";
//获取订单管理订单列表
export const getOrderlist=async (data)=>{
	return request.postRequest("manager/order/orderList",data)
}

//获取订单状态表
export const getOrderstuta=async ()=>{
	return request.postRequest("manager/order/orderStatusList")
}


//订单编号下拉框
export const getOrdercode=async ()=>{
	return request.postRequest("manager/order/orderCodeList")
}
//支付方式下拉框
export const getPaymethod=async ()=>{
	return request.postRequest("manager/order/payMethodList")
}
//订单来源下拉框
export const getOrdersourse=async ()=>{
	return request.postRequest("manager/order/orderSourceList")
}
// 添加备注信息
export const getAddmark=async (data)=>{
	return request.postRequest("manager/order/orderRemark",data)
}
// 查看备注信息
export const getLookmark=async (data)=>{
	return request.postRequest("manager/order/orderNotes",data)
}
// 查看订单详情
export const getOrderdetail=async (data)=>{
	return request.postRequest("manager/order/orderInfo",data)
}

//订单状态更新
export const updateOrderStatus=async (data)=>{
	return request.postRequest("manager/order/updateOrderStatus",data)
}

//订单日志
export const getOrderloglist=async (data)=>{
	return request.postRequest("manager/order/orderLogList",data)
}

//获取发票列表 //发票搜索//发票详情多传一个id
export const getInvoicelist=async (data)=>{
	return request.postRequest("manager/invoice/selectInvoice",data)
}
//发票状态修改
export const updateInvoiceStatus=async (data)=>{
	return request.postRequest("manager/invoice/updateInvoiceStatus",data)
}



//获取退款列表
export const getRefundlist=async (data)=>{
	return request.postRequest("manager/back/backList",data)
}
//退款列表搜索
export const searchRefundlist=async (data)=>{
	return request.postRequest("manager/back/backList",data)
}
//添加或申请退款
export const addRefund=async (data)=>{
	return request.postRequest("manager/back/addBack",data)
}



//退款信息查询
export const Refunddetail=async (data)=>{
	return request.postRequest("manager/back/backInfo",data)
}
//退款备注信息
export const Refundnode=async (data)=>{
	return request.postRequest("manager/back/backNotes",data)
}
//退款备注信息修改
export const updateRefundnode=async (data)=>{
	return request.postRequest("manager/back/updateBackNotes",data)
}




//评论列表 搜索评论
export const getEvaluate=async (data)=>{
	return request.postRequest("manager/comments/selectComment",data)
}
//回复评论
export const getReply=async (data)=>{
	return request.postRequest("manager/comments/replyComment",data)
}
//添加商品自评
export const addevaluate=async (data)=>{
	return request.postRequest("manager/comments/insertComment",data)
}
//评价等级下拉框
// export const evaluategrade=async ()=>{
// 	return request.postRequest("manager/comments/selectCommentLevel")
// }
//评论商品下拉框
export const evaluategoods=async ()=>{
	return request.postRequest("manager/comments/selectGoods")
}
//删除评论
export const delReply=async (data)=>{
	return request.postRequest("manager/comments/deleteComment",data)
}

//评论置顶
export const GoTop=async (data)=>{
	return request.postRequest("manager/comments/updateCommentOrder",data)
}

//商家地址列表 //搜索
export const getaddress=async (data)=>{
	return request.postRequest("manager/address/list",data)
}
//添加商机地址库
export const addstoreaddress=async (data)=>{
	return request.postRequest("manager/address/add",data)
}
//编辑商家地址库
export const updatastoreaddress=async (data)=>{
	return request.postRequest("manager/address/update",data)
}
//地址库删除
export const delstoreaddress=async (data)=>{
	return request.postRequest("manager/address/delete",data)
}
//自动取消订单设置默认15分钟
export const ordercancel=async (data)=>{
	return request.postRequest("manager/order/createMinuteEvent",data)
}
//自动收货设置默认14天
export const orderover=async (data)=>{
	return request.postRequest("manager/order/createDayEvent",data)
}
//不可退款设置默认14天
export const notbackpay=async (data)=>{
	return request.postRequest("manager/order/UpdateOrderBackEvent",data)
}
//查询站点订单设置
export const allorderset=async (data)=>{
	return request.postRequest("manager/order/orderSettingList",data)
}
//添加修改订单设置
export const addorderset=async (data)=>{
	return request.postRequest("manager/order/addOrderSetting",data)
}
